package com.util.solution.impl;

import com.util.solution.inter.Solution;

public class DAPSolution extends Solution{
	/**
	 * the number of devices
	 */
	public int devNum;
	/**
	 * the number of position
	 */
	public int posNum;
	/**
	 * the sequence of the allocated devices
	 */
	public int [] sequence;
	/**
	 * the resource that has been allocated in each position
	 */
	public int [] allocated;
	
	public DAPSolution(int obj_num, int type) {
		super(obj_num, type);
	}

	@Override
	public DAPSolution clone() throws CloneNotSupportedException {
		DAPSolution solution = new DAPSolution(this.obj_num, this.type);
		solution.devNum = this.devNum;
		solution.posNum = this.posNum;
		solution.sequence = this.sequence.clone();
		solution.allocated = this.allocated.clone();
		solution.object_val = this.object_val.clone();
		solution.index = this.index;
		return solution;
	}
}
